﻿using WeDonekRpc.Helper.Validate;
namespace Shop.RemoteModel.GoodsSpec.Model
{
    public class SkuStateSet
    {
        /// <summary>
        /// 商品ID
        /// </summary>
        [NumValidate("shop.goods.id.error", 1)]
        public long GoodsId { get; set; }

        /// <summary>
        /// 规格Key
        /// </summary>
        [NullValidate("shop.goods.specKey.null")]
        [LenValidate("shop.goods.specKey.len", 32)]
        [FormatValidate("shop.goods.specKey.error", ValidateFormat.数字字母)]
        public string SpecKey { get; set; }

        /// <summary>
        /// 是否启用
        /// </summary>
        public bool IsEnable { get; set; }
    }
}
